import Cookies from 'js-cookie'

const TokenKey = '103-hrsass-token'

export function getToken() {
  // 类比 localStorage.getItem
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  // 类比 localStorage.setItem
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  // 类比 localStorage.removeItem
  return Cookies.remove(TokenKey)
}
